* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url('banner-1.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  padding: 0 20px;
}

.form-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
}

.form-box {
  padding: 40px 30px;
  display: none;
}

#loginForm {
  display: block;
}

.form-box h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
}

.form-description {
  text-align: center;
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group input {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: #333;
  border: none;
  border-bottom: 1px solid #999;
  outline: none;
  background: transparent;
}

.input-group select {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: #333;
  border: none;
  border-bottom: 1px solid #999;
  outline: none;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.select-group {
  position: relative;
}

.select-group:after {
  content: '\25BC';
  font-size: 10px;
  color: #999;
  position: absolute;
  right: 0;
  top: 15px;
  pointer-events: none;
}

.input-group label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 16px;
  color: #999;
  pointer-events: none;
  transition: 0.3s ease-out;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
  top: -20px;
  left: 0;
  color: #3498db;
  font-size: 14px;
}

.security-question-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  font-weight: 500;
}

.security-question-item {
  margin-bottom: 30px;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 20px;
}

.conditional-fields {
  display: none;
  padding: 10px 0;
  margin-bottom: 10px;
  border-top: 1px dashed #ddd;
  border-bottom: 1px dashed #ddd;
}

.conditional-fields.active {
  display: block;
}

.message-box {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 14px;
  display: none;
}

.message-box.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-box.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message-box.warning {
  display: block;
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  font-size: 14px;
}

.remember-forgot label {
  color: #666;
  cursor: pointer;
}

.remember-forgot a {
  color: #3498db;
  text-decoration: none;
}

.remember-forgot a:hover {
  text-decoration: underline;
}

button {
  width: 100%;
  height: 45px;
  background: #3498db;
  border: none;
  outline: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #2980b9;
}

.switch-form {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.switch-form a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
}

.switch-form a:hover {
  text-decoration: underline;
}

.admin-link {
  text-align: center;
  margin-top: 10px;
}

.admin-link a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.admin-link a:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}

.pending-message {
  background-color: #fff3cd;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.pending-message p {
  margin-bottom: 10px;
  color: #856404;
}

/* 管理员控制面板样式 */
.admin-panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.admin-header {
  padding: 20px;
  background: #3498db;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h2 {
  margin: 0;
}

.admin-content {
  padding: 20px;
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.admin-tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.admin-tab.active {
  border-bottom: 2px solid #3498db;
  color: #3498db;
  font-weight: 500;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.user-list {
  width: 100%;
  border-collapse: collapse;
}

.user-list th,
.user-list td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.user-list th {
  background-color: #f8f9fa;
  font-weight: 500;
}

.user-list tr:hover {
  background-color: #f6f6f6;
}

.action-btn {
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  border: none;
  color: white;
  margin-right: 5px;
}

.approve-btn {
  background-color: #28a745;
}

.reject-btn {
  background-color: #dc3545;
}

.details-btn {
  background-color: #17a2b8;
}

.logout-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .form-box {
    padding: 30px 20px;
  }
}

.student-info-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 32px 24px 24px 24px;
  margin-top: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#studentInfoForm {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}

#studentInfoForm>div {
  flex: 1 1 280px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
}

#studentInfoForm label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

#studentInfoForm input,
#studentInfoForm select {
  padding: 10px 12px;
  border: 1px solid #d0d7de;
  border-radius: 5px;
  font-size: 15px;
  background: #f9f9f9;
  transition: border-color 0.2s;
}

#studentInfoForm input:focus,
#studentInfoForm select:focus {
  border-color: #0078d7;
  outline: none;
  background: #fff;
}

#studentInfoForm button[type='submit'] {
  margin-top: 24px;
  width: 100%;
  padding: 12px 0;
  background: #0078d7;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

#studentInfoForm button[type='submit']:hover {
  background: #005fa3;
}

.input-group input.no-underline {
  border-bottom: none !important;
}